Optimal. Leaf size=72 \[ \frac {(A+C) \sin (c+d x)}{d}-\frac {(2 A+3 C) \sin ^3(c+d x)}{3 d}+\frac {(A+3 C) \sin ^5(c+d x)}{5 d}-\frac {C \sin ^7(c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3092, 380}
\begin {gather*} \frac {(A+3 C) \sin ^5(c+d x)}{5 d}-\frac {(2 A+3 C) \sin ^3(c+d x)}{3 d}+\frac {(A+C) \sin (c+d x)}{d}-\frac {C \sin ^7(c+d x)}{7 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 380
Rule 3092
Rubi steps
\begin {align*} \int \cos ^5(c+d x) \left (A+C \cos ^2(c+d x)\right ) \, dx &=-\frac {\text {Subst}\left (\int \left (1-x^2\right )^2 \left (A+C-C x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \left (A \left (1+\frac {C}{A}\right )-(2 A+3 C) x^2+(A+3 C) x^4-C x^6\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac {(A+C) \sin (c+d x)}{d}-\frac {(2 A+3 C) \sin ^3(c+d x)}{3 d}+\frac {(A+3 C) \sin ^5(c+d x)}{5 d}-\frac {C \sin ^7(c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 109, normalized size = 1.51 \begin {gather*} \frac {5 A \sin (c+d x)}{8 d}+\frac {35 C \sin (c+d x)}{64 d}+\frac {5 A \sin (3 (c+d x))}{48 d}+\frac {7 C \sin (3 (c+d x))}{64 d}+\frac {A \sin (5 (c+d x))}{80 d}+\frac {7 C \sin (5 (c+d x))}{320 d}+\frac {C \sin (7 (c+d x))}{448 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 74, normalized size = 1.03
method | result | size |
derivativedivides | \(\frac {\frac {C \left (\frac {16}{5}+\cos ^{6}\left (d x +c \right )+\frac {6 \left (\cos ^{4}\left (d x +c \right )\right )}{5}+\frac {8 \left (\cos ^{2}\left (d x +c \right )\right )}{5}\right ) \sin \left (d x +c \right )}{7}+\frac {A \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}}{d}\) | \(74\) |
default | \(\frac {\frac {C \left (\frac {16}{5}+\cos ^{6}\left (d x +c \right )+\frac {6 \left (\cos ^{4}\left (d x +c \right )\right )}{5}+\frac {8 \left (\cos ^{2}\left (d x +c \right )\right )}{5}\right ) \sin \left (d x +c \right )}{7}+\frac {A \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}}{d}\) | \(74\) |
risch | \(\frac {5 \sin \left (d x +c \right ) A}{8 d}+\frac {35 C \sin \left (d x +c \right )}{64 d}+\frac {\sin \left (7 d x +7 c \right ) C}{448 d}+\frac {\sin \left (5 d x +5 c \right ) A}{80 d}+\frac {7 \sin \left (5 d x +5 c \right ) C}{320 d}+\frac {5 \sin \left (3 d x +3 c \right ) A}{48 d}+\frac {7 \sin \left (3 d x +3 c \right ) C}{64 d}\) | \(101\) |
norman | \(\frac {\frac {2 \left (A +C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d}+\frac {2 \left (A +C \right ) \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {4 \left (5 A +3 C \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {4 \left (5 A +3 C \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {8 \left (91 A +53 C \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{35 d}+\frac {2 \left (113 A +129 C \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 d}+\frac {2 \left (113 A +129 C \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{7}}\) | \(169\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 60, normalized size = 0.83 \begin {gather*} -\frac {15 \, C \sin \left (d x + c\right )^{7} - 21 \, {\left (A + 3 \, C\right )} \sin \left (d x + c\right )^{5} + 35 \, {\left (2 \, A + 3 \, C\right )} \sin \left (d x + c\right )^{3} - 105 \, {\left (A + C\right )} \sin \left (d x + c\right )}{105 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 63, normalized size = 0.88 \begin {gather*} \frac {{\left (15 \, C \cos \left (d x + c\right )^{6} + 3 \, {\left (7 \, A + 6 \, C\right )} \cos \left (d x + c\right )^{4} + 4 \, {\left (7 \, A + 6 \, C\right )} \cos \left (d x + c\right )^{2} + 56 \, A + 48 \, C\right )} \sin \left (d x + c\right )}{105 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 151 vs.
\(2 (60) = 120\).
time = 0.58, size = 151, normalized size = 2.10 \begin {gather*} \begin {cases} \frac {8 A \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {4 A \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac {A \sin {\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} + \frac {16 C \sin ^{7}{\left (c + d x \right )}}{35 d} + \frac {8 C \sin ^{5}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{5 d} + \frac {2 C \sin ^{3}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} + \frac {C \sin {\left (c + d x \right )} \cos ^{6}{\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\x \left (A + C \cos ^{2}{\left (c \right )}\right ) \cos ^{5}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 76, normalized size = 1.06 \begin {gather*} \frac {C \sin \left (7 \, d x + 7 \, c\right )}{448 \, d} + \frac {{\left (4 \, A + 7 \, C\right )} \sin \left (5 \, d x + 5 \, c\right )}{320 \, d} + \frac {{\left (20 \, A + 21 \, C\right )} \sin \left (3 \, d x + 3 \, c\right )}{192 \, d} + \frac {5 \, {\left (8 \, A + 7 \, C\right )} \sin \left (d x + c\right )}{64 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.66, size = 59, normalized size = 0.82 \begin {gather*} -\frac {\frac {C\,{\sin \left (c+d\,x\right )}^7}{7}+\left (-\frac {A}{5}-\frac {3\,C}{5}\right )\,{\sin \left (c+d\,x\right )}^5+\left (\frac {2\,A}{3}+C\right )\,{\sin \left (c+d\,x\right )}^3+\left (-A-C\right )\,\sin \left (c+d\,x\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________